package com.culturalCenter.dataCenter.mapper.user;

import com.culturalCenter.dataCenter.entity.user.UserActivityLog;
import com.culturalCenter.dataCenter.mapper.base.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description:UserActivityLog的Dao
 * @Date
 */
@Mapper
public interface UserActivityLogMapper extends BaseMapper<UserActivityLog> {

    /**
     * 通过用户id查询
     *
     * @param userId 用户id
     *
     * @return
     */
    List<UserActivityLog> queryByUserId(@Param("userId") String userId);

    /**
     * 查询用户活动记录详情
     *
     * @param userId
     * @param activityId
     *
     * @return
     */
    List<UserActivityLog> findByUserIdAndActivityId(@Param("userId") String userId, @Param("activityId") String activityId);

    /**
     * 批量插入数据
     *
     * @param registerTimeList
     */
    void insertBatch(List<UserActivityLog> registerTimeList);

}
